backIntegral = function (id, productName) {
    var reservationId = $("#reservationsId").val();
    if (confirm("是否确定退兑换商品" + productName + "？")) {
        $.ajax({
            url: Feng.ctxPath + "/integralMallWeixin/backIntegral",
            type: "post",
            data: {
                "id": id,
                "reservationId": reservationId
            },
            success: function (data) {
                if (data == 9) {
                    Feng.success("请先登录!");
                    window.location.href = Feng.ctxPath + "/integralMallWeixin/logincus";
                } else {
                    alert("退还成功");
                    window.location.href = Feng.ctxPath + "/integralMallWeixin/scoreShopping";
                }
            },
            error: function (data) {
                alert('权限被限制，请联系管理员!');
            }
        });
    }
};
$("#integralRule").click(function () {
    window.location.href = Feng.ctxPath + "/integralMallWeixin/integralRule";
});
$("#integralRecord").click(function () {
    window.location.href = Feng.ctxPath + '/integralMallWeixin/integralRecord/' + "2";
});
$("#indexcus").click(function () {
    window.location.href = Feng.ctxPath + "/integralMallWeixin/personalCenter";
});